<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class ShopCartModel extends Model
{
    //
    //定义一个表名
    protected $table = 'shop_cart';
    //定义主键
    protected $primaryKey = 'id';
    //定义了 num 字段可以写入/修改
    protected $fillable = ['num'];
}
